# Copyright (c) 2013-2017, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)

set(Boost_DEBUG ON CACHE BOOLEAN "")

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
set(TESTING_CONFIG_OPT FILEPATH ${CMAKE_CURRENT_LIST_DIR}/config.cmake) #set BUILD_SHARED_LIBS=ON
include("../common.cmake")

project(download-boost)

hunter_add_package(Boost COMPONENTS log filesystem system chrono thread regex date_time atomic)
find_package(Boost CONFIG REQUIRED log filesystem system chrono thread regex date_time atomic)

add_executable(foo foo.cpp)
target_link_libraries(foo
  PUBLIC
  Boost::log
  Boost::filesystem
  Boost::system
  Boost::chrono
  Boost::thread
  Boost::regex
  Boost::date_time
  Boost::atomic
  Boost::boost
)
